<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></meta>
<style type="text/css">
    *{
        margin:0px;
        padding:0px;
    }
    .downbox{
        height: 20mm;
        width: 55mm;
        margin:1mm auto;
    }
    .imgbox{
        width: 50mm;
        height: 15mm;
        margin:3mm auto;
        font-size:12px;
    }
</style>
<body>
<div>
    <button onclick="print_prepackage(this)" class="btn btn-info">打印</button>
</div>
<div class="downbox">
    <div class="imgbox"><center><?php echo $data['sku']; ?></center>
        <img style="height:10mm;width:43mm;" src="__PUBLIC__/chanage_code/barcode/html/image.php?code=code128&o=2&t=15&r=1.5&text=<?php echo $data['sku'] ?>&f1=-1&f2=8&a1=&a2=B&a3=" style="margin-top:10px;" />
        <!--<center><?php echo $data['storage_position']; ?></center>-->
    </div>
</div>
</body>
</html>
<style>
    .btn {
        display: inline-block;
        padding: 5px 12px;
        margin-bottom: 0;
        font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
        font-size: 13px;
        font-weight: normal;
        line-height: 1.53846154;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -o-user-select: none;
        user-select: none;
        background-image: none;
        border: 1px solid transparent;
        border-radius: 4px;
        -webkit-transition: all .4s cubic-bezier(.175, .885, .32, 1);
        transition: all .4s cubic-bezier(.175, .885, .32, 1);
    }
    .btn:focus {
        outline: thin dotted #333;
        outline: 5px auto -webkit-focus-ring-color;
        outline-offset: -2px;
    }
    .btn:hover,
    .btn:focus {
        color: #353535;
        text-decoration: none;
    }
    .btn:active,
    .btn.active {
        background-image: none;
        outline: none;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    .btn-info {
        color: #fff;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
        background-color: #03b8cf;
        border-color: #03a2b6;
    }
</style>
<script>
    function print_prepackage(thisObj)
    {
        thisObj.parentNode.style.display='none';
        window.print();
        thisObj.parentNode.style.display='block';
    }
</script>